package com.example.controller;

import com.example.dao.BookDao;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/")
public class DemoController {

    @Autowired
    private BookDao bookDao;

    @RequestMapping("/test")
    public void test() throws Exception {
        bookDao.test();
    }

//    public void setBookDao(String bookDao) {
//        this.bookDao = bookDao;
//    }
}
